import express from "express"
import path from "path"
const publicUrl = path.join(__dirname,"./public")
const app = express()
app.listen(3000,()=>{
    console.log("服务器启动");
})
//静态资源请求
app.use(
    express.static(publicUrl)
)
//get 请求
app.get("/login",(req,res,next)=>{
 let obj = req.query
})
//post 请求 参数获取
app.use(
    express.json()
)
app.post("/zhu",(req,res)=>{
    let obj = req.body
})
